import {ElMessage} from 'element-plus'

export default {

    success(context) {
        ElMessage({
            showClose: true,
            message: context,
            type: 'success',
        })
    },
    error(context) {
        ElMessage({
            showClose: true,
            message: context,
            type: 'error',
        })
    },
    warning(context) {
        ElMessage({
            showClose: true,
            message: context,
            type: 'warning',
        })
    },
    info(context) {
        ElMessage({
            showClose: true,
            message: context,
            type: "info"
        });
    },
}